MIME|Content Type Registry entry
Specify the MIME type for a particular file extension; alternatively, override the association of a MIME type and file extension recorded in the Windows registry.
Description
By default EMu uses the Windows registry to determine the MIME type for a given file extension. If the MIME type cannot be determined, or we want to ensure that a MIME type is registered for a given file extension, the Mime|Content Type Registry entry can be used. For example:
Mime|webm|Content type|video/webm
tells EMu that if a resource in the Multimedia module has a .webm
extension, then MIME Type (MulMimeType) = video.
This entry can also be used to override an invalid MIME type registration in the Windows registry. Sometimes a third party application can install a bad MIME type in the Windows registry and as a result Multimedia records created for that application will contain an invalid MIME type value. By preceding the MIME value with a plus +
symbol, it is possible to override an invalid Windows registry entry. For example:
Mime|webm|Content Type|+video/webm
will force the Mime entry for .webm
files to be video/webm
regardless of what is stored in a user's Windows registry.
Usage
This Registry entry is assigned at the system level only:
Key | System |
---|---|
Key 1 | Mime
|
Key 2 | file extension |
Key 3 | Content type
|
Value | mime type/file type |
Mime
|
file extension | Content type
|
Mime type/file extension |
where:
file extension | is the file extension of a particular resource (without the dot (. )), e.g. webm . |
Mime type/file extension |
is a Mime type paired with a file extension (without the dot ( MIME types are:
Placing a |
Example
This entry tells EMu that if a resource in the Multimedia module has a .webm
extension, then MIME Type (MulMimeType) = video:
Key | Setting |
---|---|
Key 1 | Mime
|
Key 2 | webm
|
Key 3 | Content type
|
Value | video/webm
|
This entry tells EMu that if a resource in the Multimedia module has a .webm
extension, then MIME Type (MulMimeType) = video regardless of any Windows registry setting for .webm
files:
Key | Setting |
---|---|
Key 1 | Mime
|
Key 2 | webm
|
Key 3 | Content type
|
Value | +video/webm
|